Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Contact support
List accounting ledger accounts with optional balances.
cURL
curl --request GET \ --url https://api.hyperline.co/v1/accounting/accounts \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.hyperline.co/v1/accounting/accounts" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.hyperline.co/v1/accounting/accounts', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.hyperline.co/v1/accounting/accounts", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.hyperline.co/v1/accounting/accounts" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer <token>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.get("https://api.hyperline.co/v1/accounting/accounts") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.hyperline.co/v1/accounting/accounts") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>' response = http.request(request) puts response.read_body
{ "meta": { "total": 123, "taken": 123, "skipped": 123 }, "data": [ { "id": "<string>", "ledger_id": "<string>", "code": "<string>", "type": "asset", "is_default": true, "name": "<string>", "description": "<string>", "currency": "EUR", "integrations": [ { "entity_id": "123456789", "provider_name": "stripe", "provider_account_id": "acc_1234567890" } ], "last_refreshed_at": "2023-12-25", "created_at": "2023-12-25", "updated_at": "2023-12-25", "balance": 123, "period_balance": 123 } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
0 <= x <= 100
x >= 0
ID of the ledger account to return.
ID of the ledger to filter accounts by.
ID of the invoicing entity to filter accounts by.
Filter by exact account code.
Filter by exact account name.
Filter by account type.
asset
contra_asset
liability
contra_liability
equity
revenue
contra_revenue
expense
ID of the connected provider to filter accounts by.
Search account name or code.
Year used to calculate period balances.
2000 <= x <= 2100
Quarter used to calculate period balances.
1 <= x <= 4
Field used to sort accounts.
name
code
Sort direction.
asc
desc
Pagination metadata.
Show child attributes
Ledger accounts returned by the request.
Was this page helpful?